const moment = require('moment');
const numeral = require('numeral');

console.log(moment(1671412521 * 1000).format('YYYY-MM-DD HH:mm:ss'));

// https://www.cnblogs.com/sexintercourse/p/15494098.html

let n = '23456'; //23,456

console.log(numeral(n).format('0,0'));
